def selectByCondition(Object parameter) {
    '''
SELECT *
FROM buserdept
''' + where { c ->
        if (parameter?.noParent) c += ' NoParent = #{noParent} '
        if (parameter?.deptName) c += ' AND DeptName = #{deptName} '
        c += 'and IsDel=0'
        c
    }
}


